home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!genesis.demon.co.uk
- From: Lawrence Kirby <fred@genesis.demon.co.uk>
- Newsgroups: comp.lang.c
- Subject: Re: Array Parameters
- Date: Thu, 04 Jan 96 12:29:53 GMT
- Organization: none
- Message-ID: <820758593snz@genesis.demon.co.uk>
- References: <wayne.820650643@hawk> <4ce349$4j9@hacgate2.hac.com> <820701694snz@genesis.demon.co.uk> <4cg104$qmp@nervous.pdb.sni.de>
- Reply-To: fred@genesis.demon.co.uk
- X-NNTP-Posting-Host: genesis.demon.co.uk
- X-Newsreader: Demon Internet Simple News v1.27
- X-Mail2News-Path: genesis.demon.co.uk
-
- In article <4cg104$qmp@nervous.pdb.sni.de>
- mollers.pad@sni.de "Josef Moellers" writes:
-
- >In <820701694snz@genesis.demon.co.uk> Lawrence Kirby <fred@genesis.demon.co.uk>
- > writes:
- >
- >[ ... ]
- >
- >> It is impossible
- >>to specify an array as a function parameter since, as in the example above,
- >
- >Well, if you MUST pass an array by value and not by reference, wrap it
- >into a structure:
-
- Just to be clear that in this case the variable being passed is a
- structure, not an array. Of course the structure can contain any valid type
- of member. Also note that passing a pointer to someting is not the same
- as passing something by reference (as you can do, for instance, with the &
- reference declarator in C++).
-
- --
- -----------------------------------------
- Lawrence Kirby | fred@genesis.demon.co.uk
- Wilts, England | 70734.126@compuserve.com
- -----------------------------------------
-